package com.ruoyi.product.domain.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.product.domain.vo.Activity;
import com.ruoyi.product.domain.vo.Coupon;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class SkuActivityDto {
    private Long skuId;
    private Long spuId;
    private String code;
    private String specData;
    private BigDecimal price;
    private BigDecimal originalPrice;
    private String skuName;
    private String description;
    private Long stock;
    private Long salesVolume;
    private Long lowStock;
    private BigDecimal weight;
    private BigDecimal volume;
    private Integer status;
    private List<String> specNameGroup;
    private List<String> specValueGroup;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createdAt;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updatedAt;
    private List<String> urls;

    // 优惠券列表
    private List<Coupon> couponList;

    // 活动列表
    private List<Activity> activityList;
}